package tgc.edu.exam.service;

import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.exam.custom.CommonService;
import tgc.edu.exam.entity.Committee;
import tgc.edu.exam.repository.CommitteeRepository;

@Service
public class CommitteeService extends CommonService<Committee, UUID> {
	@Autowired
	private CommitteeRepository committeeDAO;

	public Committee findByStudentId(UUID id) {
		return committeeDAO.findByStudentId(id);
	}

	public List<Committee> findByTbClassId(UUID id) {
		// TODO Auto-generated method stub
		return committeeDAO.findByTbClassId(id);
	}

}
